package com.example.demo.aop.asp;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Repository;

@Repository
public class Method2 implements BeanFactoryPostProcessor{
	
	public void aspect() {
		System.out.println("this is Method2");
	}

	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
		System.out.println("**********this is Method2 postProcessBeanFactory**********");

	}
}
